<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .slide-fade-enter-active {
            transition: all .6s linear;
        }
        .slide-fade-leave-active {
            transition: all .6s cubic-bezier(1.0, 0.5, 0.8, 1.0);
        }
        .slide-fade-enter, .slide-fade-leave-to {
            transform: translateX(10px);
            opacity: 0;
        }
    </style>
</head>
<body>
    <div class="default-div">
        <h2>3.1.2.2 CSS 过渡</h2>
        <div id="demo">
            <button @click="show = !show">Toggle render</button>
            <transition name="slide-fade">
                <p v-if="show">CSS transition(过渡)</p>
            </transition>
        </div>
    </div>
</body>
</html>